import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {InsMessagingComponent} from './ins-messaging.component';

const routes: Routes = [
    {path: '', component: InsMessagingComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-ins-messaging/add-ins-messaging.module#AddInsMessagingModule'},
            {path: 'list', loadChildren: './list-ins-messaging/list-ins-messaging.module#ListInsMessagingModule'},
            {path: 'modify', loadChildren: './modify-ins-messaging/modify-ins-messaging.module#ModifyInsMessagingModule'},
            {path: 'report', loadChildren: './report-ins-messaging/report-ins-messaging.module#ReportInsMessagingModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class InsMessagingRoutingModule {
}
